import { http } from '@/utils/http/axios';

/**
 * @description: 角色列表
 */
export function getRoleList() {
  return http.request({
    // url: '/role/list',
    url: '/disk/common/role/roleList',
    method: 'GET',
  });
}

/**
 * @description: 根据用户id修改用户权限列表
 */
export function updatePermissionsById(userId: String, params: []) {
  let response = http.request({
    url: `/disk/common/role/updatePermissions/${userId}`,
    method: 'PUT',
    params,
  });
  console.log('response', response)
  return response;
}
